package z_app_lotto2;


import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
import javax.swing.table.*;


class LottoTable extends JTable
{
	Vector data;
	TableColumn header;	

	public LottoTable(Vector v)
	{
		data = v;
		initHeader();
		setData();
	}
	
	public void initHeader()
	{
		header = new TableColumn();
		header.setHeaderValue("횟수");
		header.setHeaderValue("num1");
		header.setHeaderValue("num2");
		header.setHeaderValue("num3");
		header.setHeaderValue("num4");
		header.setHeaderValue("num5");
		header.setHeaderValue("num6");
		header.setHeaderValue("Bonus");
		
	}
	
	public void setData()
	{
		this.addColumn(header);

	}
}